package com.hrbu.mp.generator.myenum;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * @Description:
 * @Author: tanyajun
 * @CreateTime: 2021/3/31
 * @Blog: https://tanyajun.top
 */
public enum Gender implements IEnum<Integer> {
    MALE(1, "男"),
    FEMALE(0, "女");

    private int value;
    private String desc;

    Gender(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
    public String getDesc(){
        return this.desc;
    }
}
